import ViewHome from "../resources/home/ViewHome";
import Game, { gg } from "./Game";
import { UIManager } from "./manger/UIManager";


const { ccclass, property } = cc._decorator;

@ccclass
export default class MainScene extends cc.Component {
    async onLoad() {
        cc.game.setFrameRate(59)
        await gg.initialize()
        const viewHome = this.node.getComponentInChildren(ViewHome)
        UIManager.instance().viewArr.push(viewHome)
        viewHome.onOpen()
    }
}
